<?php
namespace org\util;
use think\Request;
class Upload{
    public $file;
    function __construct($file)
    {
        $this->file=$file;
    }

    function uoload(){
        //$requset=Request::instance();
        $info=$this->file->move(ROOT_PATH . 'public' . DS . 'upload');
        $src="/public/upload/".$info->getSaveName();
        return $src;
    }
}